<template>
  <ul class="center">
    <CartItem v-for="good in list" :good="good" :key="good.id" />
  </ul>
</template>

<script>
import CartItem from "./CartItem.vue";
export default {
  name: "CartList",
  props: ["list"],
  components: {
    CartItem,
  },
};
</script>

<style>
.center {
  width: 100%;
}
</style>
